import { useRoutes } from 'react-router-dom'
import { Spin } from 'antd'
import { Suspense } from 'react'
import RouterConfig from '/@/platform/router/router-config.tsx'

const RouteView = () => {
  return (
    <Suspense fallback={<Spin size={'large'} tip={'loading'} />}>
      {useRoutes(RouterConfig as any)}
    </Suspense>
  )
}

export default RouteView
